<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="<?php echo site_url("style.css"); ?>" type="text/css" />
<title>Edit Series</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
	<!-- header starts here -->
<div id="header">
  <div id="header-content"> 
    <ul>
      <li><a href="<?php echo site_url("admin/logout/"); ?>">Logout</a></li>
    </ul>
  </div>
</div>

<div id="content-wrap">
	
	<div id="nav">
		<img src="<?php echo site_url("images/Nav_Head.png"); ?>" alt="navigation header" class="no-border" />
		<a href="<?php echo site_url("review"); ?>"><img src="<?php echo site_url("images/Home_On.png"); ?>" alt="home" class="no-border" /></a>
		<a href="<?php echo site_url("review/reviews/default/0/A"); ?>"><img src="<?php echo site_url("images/Reviews_Off.png"); ?>" alt="reviews" class="no-border" /></a>
		<br />
		<div class="navlink"><a href="<?php echo site_url("admin/post/"); ?>">Add Post</a></div><br />
		<div class="navlink"><a href="<?php echo site_url("admin/add_series/"); ?>">Add Series</a></div><br />
		<div class="navlink"><a href="<?php echo site_url("admin/edit/post/0"); ?>">Edit Post/Review</a></div><br />
		<div class="navlink"><a href="<?php echo site_url("admin/edit/series/0"); ?>">Edit Series</a></div><br />
        <div class="navlink"><a href="<?php echo site_url("admin/manage_list/0"); ?>">Media Management</a></div><br />
		<div class="navlink"><a href="<?php echo site_url("admin/edit_schedule/"); ?>">Edit Schedule</a></div><br />
	</div>
		
	<div id="adminwrapper">
    
<?php
	$ft = htmlspecialchars($series->name);
	echo "<h1>$ft</h1>
		<p>Series ID: $series->s_id (Read-only) <br />
		Studio: $series->studio <br />
		Season_num: $series->season_num <i>** This is a special value used to correctly order seasons</i> <br />
		Season: $series->season <br />
		Year: $series->year <br />
		Length: $series->length <br />
		Genre: $series->genre
		</p><br />";
		
?>
    
	<form action="<?php echo current_url(); ?>" method="post">
	<fieldset><legend>Edit Series</legend>
	
	<br /><br />
	
	<p><b>Series:</b>&nbsp;<input type="text" name="series" size="50" maxlength="256" value="<?php echo $series->name; ?>" /></p>
	
	<p><b>Studio:</b>&nbsp;<input type="text" name="studio" size="50" maxlength="256" value="<?php echo $series->studio; ?>" /></p>
	
	<p><b>Season_num:</b>&nbsp;<input type="text" name="s_num" size="1" maxlength="1" value="<?php echo $series->season_num; ?>" /> <i>** 1 = Winter, 2 = Spring, 3 = Summer, 4 = Fall</i></p>
	
	<p><b>Season:</b>&nbsp;<input type="text" name="season" size="6" maxlength="6" value="<?php echo $series->season; ?>" /> <i>** If you change seasons you <b>MUST ALSO CHANGE Season_num</b> to match</i></p>
	
	<p><b>Year:</b>&nbsp;<input type="text" name="year" size="4" maxlength="4" value="<?php echo $series->year; ?>" /></p>
	
	<p><b>Length:</b>&nbsp;<input type="text" name="eps" size="3" maxlength="3" value="<?php echo $series->length; ?>" /></p>
	
	<p><b>Genre:</b>&nbsp;<input type="text" name="genre" size="50" maxlength="256" value="<?php echo $series->genre; ?>" /></p>
	<br /><br />
	
	<div align="center"><input type="submit" name="submit" value="Edit Series" /></div><br /><br />
	
	</form><!-- End of Form -->	
		
	</div>
</div>

</body>
</html>